﻿@if (ViewContext.HttpContext.GetOverriddenBrowser().IsMobileDevice)
{
    @Html.ActionLink("Desktop view", "SwitchMode", "Home", new { mode = BrowserOverride.Desktop, returnUrl = Request.Url.PathAndQuery }, new { rel = "external" })
}
else
{
    @Html.ActionLink("Mobile view", "SwitchMode", "Home", new { mode = BrowserOverride.Mobile, returnUrl = Request.Url.PathAndQuery }, new { rel = "external" })
}